package drds.binlog.protocol.entry_protocol_proto;

import com.google.protobuf.*;

/**
 * <pre>
 * *结束事务的一些信息*
 * </pre>
 */
public final class TransactionEnd extends
        com.google.protobuf.GeneratedMessageV3 implements

        TransactionEndOrBuilder
{
    public static final int EXECUTETIME_FIELD_NUMBER = 1;
    public static final int TRANSACTIONID_FIELD_NUMBER = 2;
    public static final int PROPS_FIELD_NUMBER = 3;
    private static final long serialVersionUID = 0L;

    private static final TransactionEnd TRANSACTION_END;
    private static final com.google.protobuf.Parser<TransactionEnd>
            PARSER = new com.google.protobuf.AbstractParser<TransactionEnd>()
    {
        @Override
        public TransactionEnd parsePartialFrom(
                com.google.protobuf.CodedInputStream codedInputStream,
                com.google.protobuf.ExtensionRegistryLite extensionRegistryLite)
                throws com.google.protobuf.InvalidProtocolBufferException
        {
            return new TransactionEnd(codedInputStream, extensionRegistryLite);
        }
    };

    static
    {
        TRANSACTION_END = new TransactionEnd();
    }

    private int bitField0_;
    private long executeTime_;
    private volatile Object transactionId;
    private java.util.List<Pair> props_;
    private byte memoizedIsInitialized = -1;

    // Use TransactionEnd.newBuilder() to construct.
    private TransactionEnd(GeneratedMessageV3.Builder<?> builder)
    {
        super(builder);
    }

    private TransactionEnd()
    {
        executeTime_ = 0L;
        transactionId = "";
        props_ = java.util.Collections.emptyList();
    }

    private TransactionEnd(
            CodedInputStream codedInputStream,
            ExtensionRegistryLite extensionRegistryLite)
            throws com.google.protobuf.InvalidProtocolBufferException
    {
        this();
        if (extensionRegistryLite == null)
        {
            throw new NullPointerException();
        }
        int mutable_bitField0_ = 0;
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
                com.google.protobuf.UnknownFieldSet.newBuilder();
        try
        {
            boolean done = false;
            while (!done)
            {
                int tag = codedInputStream.readTag();
                switch (tag)
                {
                    case 0:
                        done = true;
                        break;
                    case 8:
                    {

                        executeTime_ = codedInputStream.readInt64();
                        break;
                    }
                    case 18:
                    {
                        String s = codedInputStream.readStringRequireUtf8();

                        transactionId = s;
                        break;
                    }
                    case 26:
                    {
                        if (!((mutable_bitField0_ & 0x00000004) == 0x00000004))
                        {
                            props_ = new java.util.ArrayList<Pair>();
                            mutable_bitField0_ |= 0x00000004;
                        }
                        props_.add(
                                codedInputStream.readMessage(Pair.parser(), extensionRegistryLite));
                        break;
                    }
                    default:
                    {
                        if (!parseUnknownFieldProto3(
                                codedInputStream, unknownFields, extensionRegistryLite, tag))
                        {
                            done = true;
                        }
                        break;
                    }
                }
            }
        } catch (com.google.protobuf.InvalidProtocolBufferException e)
        {
            throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e)
        {
            throw new com.google.protobuf.InvalidProtocolBufferException(
                    e).setUnfinishedMessage(this);
        } finally
        {
            if (((mutable_bitField0_ & 0x00000004) == 0x00000004))
            {
                props_ = java.util.Collections.unmodifiableList(props_);
            }
            this.unknownFields = unknownFields.build();
            makeExtensionsImmutable();
        }
    }

    public static final Descriptors.Descriptor
    getDescriptor()
    {
        return BinlogEntry.protocol_TransactionEnd_descriptor;
    }

    public static TransactionEnd parseFrom(
            java.nio.ByteBuffer byteBuffer)
            throws com.google.protobuf.InvalidProtocolBufferException
    {
        return PARSER.parseFrom(byteBuffer);
    }

    public static TransactionEnd parseFrom(
            java.nio.ByteBuffer data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException
    {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static TransactionEnd parseFrom(
            com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException
    {
        return PARSER.parseFrom(data);
    }

    public static TransactionEnd parseFrom(
            com.google.protobuf.ByteString data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException
    {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static TransactionEnd parseFrom(byte[] data)
            throws com.google.protobuf.InvalidProtocolBufferException
    {
        return PARSER.parseFrom(data);
    }

    public static TransactionEnd parseFrom(
            byte[] data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException
    {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static TransactionEnd parseFrom(java.io.InputStream input)
            throws java.io.IOException
    {
        return com.google.protobuf.GeneratedMessageV3
                .parseWithIOException(PARSER, input);
    }

    public static TransactionEnd parseFrom(
            java.io.InputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException
    {
        return com.google.protobuf.GeneratedMessageV3
                .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static TransactionEnd parseDelimitedFrom(java.io.InputStream input)
            throws java.io.IOException
    {
        return com.google.protobuf.GeneratedMessageV3
                .parseDelimitedWithIOException(PARSER, input);
    }

    public static TransactionEnd parseDelimitedFrom(
            java.io.InputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException
    {
        return com.google.protobuf.GeneratedMessageV3
                .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }

    public static TransactionEnd parseFrom(
            com.google.protobuf.CodedInputStream input)
            throws java.io.IOException
    {
        return com.google.protobuf.GeneratedMessageV3
                .parseWithIOException(PARSER, input);
    }

    public static TransactionEnd parseFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException
    {
        return com.google.protobuf.GeneratedMessageV3
                .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static Builder newBuilder()
    {
        return TRANSACTION_END.toBuilder();
    }

    public static Builder newBuilder(TransactionEnd prototype)
    {
        return TRANSACTION_END.toBuilder().mergeFrom(prototype);
    }

    public static TransactionEnd getTransactionEnd()
    {
        return TRANSACTION_END;
    }

    public static com.google.protobuf.Parser<TransactionEnd> parser()
    {
        return PARSER;
    }

    @Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields()
    {
        return this.unknownFields;
    }

    @Override
    protected FieldAccessorTable
    internalGetFieldAccessorTable()
    {
        return BinlogEntry.protocol_TransactionEnd_fieldAccessorTable
                .ensureFieldAccessorsInitialized(
                        TransactionEnd.class, Builder.class);
    }

    /**
     * <pre>
     * *已废弃，请使用header里的executeTime*
     * </pre>
     * <p>
     * <code>int64 executeTime = 1;</code>
     */
    public long getExecuteTime()
    {
        return executeTime_;
    }

    /**
     * <pre>
     * *事务号*
     * </pre>
     * <p>
     * <code>string transactionId = 2;</code>
     */
    public String getTransactionId()
    {
        Object ref = transactionId;
        if (ref instanceof String)
        {
            return (String) ref;
        } else
        {
            com.google.protobuf.ByteString bs =
                    (com.google.protobuf.ByteString) ref;
            String s = bs.toStringUtf8();
            transactionId = s;
            return s;
        }
    }

    /**
     * <pre>
     * *事务号*
     * </pre>
     * <p>
     * <code>string transactionId = 2;</code>
     */
    public com.google.protobuf.ByteString
    getTransactionIdBytes()
    {
        Object object = transactionId;
        if (object instanceof String)
        {
            ByteString byteString =
                    ByteString.copyFromUtf8(
                            (String) object);
            transactionId = byteString;
            return byteString;
        } else
        {
            return (com.google.protobuf.ByteString) object;
        }
    }

    /**
     * <pre>
     * *预留扩展*
     * </pre>
     * <p>
     * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
     */
    public java.util.List<Pair> getPropsList()
    {
        return props_;
    }

    /**
     * <pre>
     * *预留扩展*
     * </pre>
     * <p>
     * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
     */
    public java.util.List<? extends PairOrBuilder>
    getPropsOrBuilderList()
    {
        return props_;
    }

    /**
     * <pre>
     * *预留扩展*
     * </pre>
     * <p>
     * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
     */
    public int getPropsCount()
    {
        return props_.size();
    }

    /**
     * <pre>
     * *预留扩展*
     * </pre>
     * <p>
     * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
     */
    public Pair getProps(int index)
    {
        return props_.get(index);
    }

    /**
     * <pre>
     * *预留扩展*
     * </pre>
     * <p>
     * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
     */
    public PairOrBuilder getPropsOrBuilder(
            int index)
    {
        return props_.get(index);
    }

    @Override
    public final boolean isInitialized()
    {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized == 1) return true;
        if (isInitialized == 0) return false;

        memoizedIsInitialized = 1;
        return true;
    }

    @Override
    public void writeTo(CodedOutputStream output)
            throws java.io.IOException
    {
        if (executeTime_ != 0L)
        {
            output.writeInt64(1, executeTime_);
        }
        if (!getTransactionIdBytes().isEmpty())
        {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 2, transactionId);
        }
        for (int i = 0; i < props_.size(); i++)
        {
            output.writeMessage(3, props_.get(i));
        }
        unknownFields.writeTo(output);
    }

    @Override
    public int getSerializedSize()
    {
        int size = memoizedSize;
        if (size != -1) return size;

        size = 0;
        if (executeTime_ != 0L)
        {
            size += com.google.protobuf.CodedOutputStream
                    .computeInt64Size(1, executeTime_);
        }
        if (!getTransactionIdBytes().isEmpty())
        {
            size += GeneratedMessageV3.computeStringSize(2, transactionId);
        }
        for (int i = 0; i < props_.size(); i++)
        {
            size += com.google.protobuf.CodedOutputStream
                    .computeMessageSize(3, props_.get(i));
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
    }

    @Override
    public boolean equals(final Object obj)
    {
        if (obj == this)
        {
            return true;
        }
        if (!(obj instanceof TransactionEnd))
        {
            return super.equals(obj);
        }
        TransactionEnd other = (TransactionEnd) obj;

        boolean result = true;
        result = result && (getExecuteTime()
                == other.getExecuteTime());
        result = result && getTransactionId()
                .equals(other.getTransactionId());
        result = result && getPropsList()
                .equals(other.getPropsList());
        result = result && unknownFields.equals(other.unknownFields);
        return result;
    }

    @Override
    public int hashCode()
    {
        if (memoizedHashCode != 0)
        {
            return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + EXECUTETIME_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
                getExecuteTime());
        hash = (37 * hash) + TRANSACTIONID_FIELD_NUMBER;
        hash = (53 * hash) + getTransactionId().hashCode();
        if (getPropsCount() > 0)
        {
            hash = (37 * hash) + PROPS_FIELD_NUMBER;
            hash = (53 * hash) + getPropsList().hashCode();
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
    }

    @Override
    public Builder newBuilderForType()
    {
        return newBuilder();
    }

    @Override
    public Builder toBuilder()
    {
        return this == TRANSACTION_END
                ? new Builder() : new Builder().mergeFrom(this);
    }

    @Override
    protected Builder newBuilderForType(
            BuilderParent parent)
    {
        Builder builder = new Builder(parent);
        return builder;
    }

    @Override
    public Parser<TransactionEnd> getParserForType()
    {
        return PARSER;
    }

    @Override
    public TransactionEnd getDefaultInstanceForType()
    {
        return TRANSACTION_END;
    }

    /**
     * <pre>
     * *结束事务的一些信息*
     * </pre>
     * <p>
     * Protobuf type {@code com.alibaba.otter.canal.protocol.TransactionEnd}
     */
    public static final class Builder extends
            com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements

            TransactionEndOrBuilder
    {
        private int bitField0_;
        private long executeTime_;
        private Object transactionId_ = "";
        private java.util.List<Pair> props_ =
                java.util.Collections.emptyList();
        private com.google.protobuf.RepeatedFieldBuilderV3<
                Pair, Pair.Builder, PairOrBuilder> propsBuilder_;

        // Construct using BinlogEntry.TransactionEnd.newBuilder()
        private Builder()
        {
            maybeForceBuilderInitialization();
        }

        private Builder(
                BuilderParent parent)
        {
            super(parent);
            maybeForceBuilderInitialization();
        }

        public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor()
        {
            return BinlogEntry.protocol_TransactionEnd_descriptor;
        }

        @Override
        protected FieldAccessorTable
        internalGetFieldAccessorTable()
        {
            return BinlogEntry.protocol_TransactionEnd_fieldAccessorTable
                    .ensureFieldAccessorsInitialized(
                            TransactionEnd.class, Builder.class);
        }

        private void maybeForceBuilderInitialization()
        {
            if (com.google.protobuf.GeneratedMessageV3
                    .alwaysUseFieldBuilders)
            {
                getPropsFieldBuilder();
            }
        }

        @Override
        public Builder clear()
        {
            super.clear();
            executeTime_ = 0L;

            transactionId_ = "";

            if (propsBuilder_ == null)
            {
                props_ = java.util.Collections.emptyList();
                bitField0_ = (bitField0_ & ~0x00000004);
            } else
            {
                propsBuilder_.clear();
            }
            return this;
        }

        @Override
        public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType()
        {
            return BinlogEntry.protocol_TransactionEnd_descriptor;
        }

        @Override
        public TransactionEnd getDefaultInstanceForType()
        {
            return TransactionEnd.getTransactionEnd();
        }

        @Override
        public TransactionEnd build()
        {
            TransactionEnd result = buildPartial();
            if (!result.isInitialized())
            {
                throw newUninitializedMessageException(result);
            }
            return result;
        }

        @Override
        public TransactionEnd buildPartial()
        {
            TransactionEnd result = new TransactionEnd(this);
            int from_bitField0_ = bitField0_;
            int to_bitField0_ = 0;
            result.executeTime_ = executeTime_;
            result.transactionId = transactionId_;
            if (propsBuilder_ == null)
            {
                if (((bitField0_ & 0x00000004) == 0x00000004))
                {
                    props_ = java.util.Collections.unmodifiableList(props_);
                    bitField0_ = (bitField0_ & ~0x00000004);
                }
                result.props_ = props_;
            } else
            {
                result.props_ = propsBuilder_.build();
            }
            result.bitField0_ = to_bitField0_;
            onBuilt();
            return result;
        }

        @Override
        public Builder clone()
        {
            return (Builder) super.clone();
        }

        @Override
        public Builder setField(
                com.google.protobuf.Descriptors.FieldDescriptor field,
                Object value)
        {
            return (Builder) super.setField(field, value);
        }

        @Override
        public Builder clearField(
                com.google.protobuf.Descriptors.FieldDescriptor field)
        {
            return (Builder) super.clearField(field);
        }

        @Override
        public Builder clearOneof(
                com.google.protobuf.Descriptors.OneofDescriptor oneof)
        {
            return (Builder) super.clearOneof(oneof);
        }

        @Override
        public Builder setRepeatedField(
                com.google.protobuf.Descriptors.FieldDescriptor field,
                int index, Object value)
        {
            return (Builder) super.setRepeatedField(field, index, value);
        }

        @Override
        public Builder addRepeatedField(
                com.google.protobuf.Descriptors.FieldDescriptor field,
                Object value)
        {
            return (Builder) super.addRepeatedField(field, value);
        }

        @Override
        public Builder mergeFrom(com.google.protobuf.Message other)
        {
            if (other instanceof TransactionEnd)
            {
                return mergeFrom((TransactionEnd) other);
            } else
            {
                super.mergeFrom(other);
                return this;
            }
        }

        public Builder mergeFrom(TransactionEnd other)
        {
            if (other == TransactionEnd.getTransactionEnd())
                return this;
            if (other.getExecuteTime() != 0L)
            {
                setExecuteTime(other.getExecuteTime());
            }
            if (!other.getTransactionId().isEmpty())
            {
                transactionId_ = other.transactionId;
                onChanged();
            }
            if (propsBuilder_ == null)
            {
                if (!other.props_.isEmpty())
                {
                    if (props_.isEmpty())
                    {
                        props_ = other.props_;
                        bitField0_ = (bitField0_ & ~0x00000004);
                    } else
                    {
                        ensurePropsIsMutable();
                        props_.addAll(other.props_);
                    }
                    onChanged();
                }
            } else
            {
                if (!other.props_.isEmpty())
                {
                    if (propsBuilder_.isEmpty())
                    {
                        propsBuilder_.dispose();
                        propsBuilder_ = null;
                        props_ = other.props_;
                        bitField0_ = (bitField0_ & ~0x00000004);
                        propsBuilder_ =
                                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                                        getPropsFieldBuilder() : null;
                    } else
                    {
                        propsBuilder_.addAllMessages(other.props_);
                    }
                }
            }
            this.mergeUnknownFields(other.unknownFields);
            onChanged();
            return this;
        }

        @Override
        public final boolean isInitialized()
        {
            return true;
        }

        @Override
        public Builder mergeFrom(
                com.google.protobuf.CodedInputStream input,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws java.io.IOException
        {
            TransactionEnd parsedMessage = null;
            try
            {
                parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e)
            {
                parsedMessage = (TransactionEnd) e.getUnfinishedMessage();
                throw e.unwrapIOException();
            } finally
            {
                if (parsedMessage != null)
                {
                    mergeFrom(parsedMessage);
                }
            }
            return this;
        }

        /**
         * <pre>
         * *已废弃，请使用header里的executeTime*
         * </pre>
         * <p>
         * <code>int64 executeTime = 1;</code>
         */
        public long getExecuteTime()
        {
            return executeTime_;
        }

        /**
         * <pre>
         * *已废弃，请使用header里的executeTime*
         * </pre>
         * <p>
         * <code>int64 executeTime = 1;</code>
         */
        public Builder setExecuteTime(long value)
        {

            executeTime_ = value;
            onChanged();
            return this;
        }

        /**
         * <pre>
         * *已废弃，请使用header里的executeTime*
         * </pre>
         * <p>
         * <code>int64 executeTime = 1;</code>
         */
        public Builder clearExecuteTime()
        {

            executeTime_ = 0L;
            onChanged();
            return this;
        }

        /**
         * <pre>
         * *事务号*
         * </pre>
         * <p>
         * <code>string transactionId = 2;</code>
         */
        public String getTransactionId()
        {
            Object ref = transactionId_;
            if (!(ref instanceof String))
            {
                com.google.protobuf.ByteString bs =
                        (com.google.protobuf.ByteString) ref;
                String s = bs.toStringUtf8();
                transactionId_ = s;
                return s;
            } else
            {
                return (String) ref;
            }
        }

        /**
         * <pre>
         * *事务号*
         * </pre>
         * <p>
         * <code>string transactionId = 2;</code>
         */
        public Builder setTransactionId(
                String value)
        {
            if (value == null)
            {
                throw new NullPointerException();
            }

            transactionId_ = value;
            onChanged();
            return this;
        }

        /**
         * <pre>
         * *事务号*
         * </pre>
         * <p>
         * <code>string transactionId = 2;</code>
         */
        public com.google.protobuf.ByteString
        getTransactionIdBytes()
        {
            Object ref = transactionId_;
            if (ref instanceof String)
            {
                com.google.protobuf.ByteString b =
                        com.google.protobuf.ByteString.copyFromUtf8(
                                (String) ref);
                transactionId_ = b;
                return b;
            } else
            {
                return (com.google.protobuf.ByteString) ref;
            }
        }

        /**
         * <pre>
         * *事务号*
         * </pre>
         * <p>
         * <code>string transactionId = 2;</code>
         */
        public Builder setTransactionIdBytes(
                com.google.protobuf.ByteString value)
        {
            if (value == null)
            {
                throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);

            transactionId_ = value;
            onChanged();
            return this;
        }

        /**
         * <pre>
         * *事务号*
         * </pre>
         * <p>
         * <code>string transactionId = 2;</code>
         */
        public Builder clearTransactionId()
        {

            transactionId_ = getTransactionEnd().getTransactionId();
            onChanged();
            return this;
        }

        private void ensurePropsIsMutable()
        {
            if (!((bitField0_ & 0x00000004) == 0x00000004))
            {
                props_ = new java.util.ArrayList<Pair>(props_);
                bitField0_ |= 0x00000004;
            }
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public java.util.List<Pair> getPropsList()
        {
            if (propsBuilder_ == null)
            {
                return java.util.Collections.unmodifiableList(props_);
            } else
            {
                return propsBuilder_.getMessageList();
            }
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public int getPropsCount()
        {
            if (propsBuilder_ == null)
            {
                return props_.size();
            } else
            {
                return propsBuilder_.getCount();
            }
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public Pair getProps(int index)
        {
            if (propsBuilder_ == null)
            {
                return props_.get(index);
            } else
            {
                return propsBuilder_.getMessage(index);
            }
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public Builder setProps(
                int index, Pair value)
        {
            if (propsBuilder_ == null)
            {
                if (value == null)
                {
                    throw new NullPointerException();
                }
                ensurePropsIsMutable();
                props_.set(index, value);
                onChanged();
            } else
            {
                propsBuilder_.setMessage(index, value);
            }
            return this;
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public Builder setProps(
                int index, Pair.Builder builderForValue)
        {
            if (propsBuilder_ == null)
            {
                ensurePropsIsMutable();
                props_.set(index, builderForValue.build());
                onChanged();
            } else
            {
                propsBuilder_.setMessage(index, builderForValue.build());
            }
            return this;
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public Builder addProps(Pair value)
        {
            if (propsBuilder_ == null)
            {
                if (value == null)
                {
                    throw new NullPointerException();
                }
                ensurePropsIsMutable();
                props_.add(value);
                onChanged();
            } else
            {
                propsBuilder_.addMessage(value);
            }
            return this;
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public Builder addProps(
                int index, Pair value)
        {
            if (propsBuilder_ == null)
            {
                if (value == null)
                {
                    throw new NullPointerException();
                }
                ensurePropsIsMutable();
                props_.add(index, value);
                onChanged();
            } else
            {
                propsBuilder_.addMessage(index, value);
            }
            return this;
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public Builder addProps(
                Pair.Builder builderForValue)
        {
            if (propsBuilder_ == null)
            {
                ensurePropsIsMutable();
                props_.add(builderForValue.build());
                onChanged();
            } else
            {
                propsBuilder_.addMessage(builderForValue.build());
            }
            return this;
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public Builder addProps(
                int index, Pair.Builder builderForValue)
        {
            if (propsBuilder_ == null)
            {
                ensurePropsIsMutable();
                props_.add(index, builderForValue.build());
                onChanged();
            } else
            {
                propsBuilder_.addMessage(index, builderForValue.build());
            }
            return this;
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public Builder addAllProps(
                Iterable<? extends Pair> values)
        {
            if (propsBuilder_ == null)
            {
                ensurePropsIsMutable();
                com.google.protobuf.AbstractMessageLite.Builder.addAll(
                        values, props_);
                onChanged();
            } else
            {
                propsBuilder_.addAllMessages(values);
            }
            return this;
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public Builder clearProps()
        {
            if (propsBuilder_ == null)
            {
                props_ = java.util.Collections.emptyList();
                bitField0_ = (bitField0_ & ~0x00000004);
                onChanged();
            } else
            {
                propsBuilder_.clear();
            }
            return this;
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public Builder removeProps(int index)
        {
            if (propsBuilder_ == null)
            {
                ensurePropsIsMutable();
                props_.remove(index);
                onChanged();
            } else
            {
                propsBuilder_.remove(index);
            }
            return this;
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public Pair.Builder getPropsBuilder(
                int index)
        {
            return getPropsFieldBuilder().getBuilder(index);
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public PairOrBuilder getPropsOrBuilder(
                int index)
        {
            if (propsBuilder_ == null)
            {
                return props_.get(index);
            } else
            {
                return propsBuilder_.getMessageOrBuilder(index);
            }
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public java.util.List<? extends PairOrBuilder>
        getPropsOrBuilderList()
        {
            if (propsBuilder_ != null)
            {
                return propsBuilder_.getMessageOrBuilderList();
            } else
            {
                return java.util.Collections.unmodifiableList(props_);
            }
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public Pair.Builder addPropsBuilder()
        {
            return getPropsFieldBuilder().addBuilder(
                    Pair.getDefaultInstance());
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public Pair.Builder addPropsBuilder(
                int index)
        {
            return getPropsFieldBuilder().addBuilder(
                    index, Pair.getDefaultInstance());
        }

        /**
         * <pre>
         * *预留扩展*
         * </pre>
         * <p>
         * <code>repeated .com.alibaba.otter.canal.protocol.Pair props = 3;</code>
         */
        public java.util.List<Pair.Builder>
        getPropsBuilderList()
        {
            return getPropsFieldBuilder().getBuilderList();
        }

        private com.google.protobuf.RepeatedFieldBuilderV3<
                Pair, Pair.Builder, PairOrBuilder>
        getPropsFieldBuilder()
        {
            if (propsBuilder_ == null)
            {
                propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
                        Pair, Pair.Builder, PairOrBuilder>(
                        props_,
                        ((bitField0_ & 0x00000004) == 0x00000004),
                        getParentForChildren(),
                        isClean());
                props_ = null;
            }
            return propsBuilder_;
        }

        @Override
        public final Builder setUnknownFields(
                final com.google.protobuf.UnknownFieldSet unknownFields)
        {
            return super.setUnknownFieldsProto3(unknownFields);
        }

        @Override
        public final Builder mergeUnknownFields(
                final com.google.protobuf.UnknownFieldSet unknownFields)
        {
            return super.mergeUnknownFields(unknownFields);
        }


    }

}
